<?php
/**
 * Created by PhpStorm.
 * User: ljc
 * Date: 2018/6/18
 * Time: 15:12
 */

namespace houdun\model;


class Model
{
	public function __call ( $name , $arguments )
	{

		return self::run($name,$arguments);

	}
	public static function __callStatic ( $name , $arguments )
	{

		return self::run($name,$arguments);

	}
	private static function run($name,$arguments){

		$class=get_called_class ();

		return call_user_func_array ([new Base($class),$name],$arguments);
	}

}